package com.rd.student.jiaji.class1.wangyufang.day0808;

import java.io.File;
import java.util.Scanner;

public class Student {
    public static void main(String[] args) throws Exception {
        File file = new File("Student.txt");
        if(!file.exists()){
            file.createNewFile();
        }
        printData();
    }
   public static void printData() {
        System.out.println("姓名 语文成绩 数学成绩 总分");
        Scanner scanner = new Scanner(System.in);
        String name = scanner.next();
        int chinese = scanner.nextInt();
        int math = scanner.nextInt();
        int score = chinese + math;
        System.out.print(name + " ");
        System.out.print(chinese + " ");
        System.out.print(math + " ");
        System.out.println(score);
   }
}
